<%@ page language="java" pageEncoding="UTF-8" buffer="16kb"%>
<%@ include file="/base.jsp"%>
<%@ include file="/module/taglibs.jsp"%>
<%@ include file="/module/nocache.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<%@ include file="/module/js.jsp"%>
<%@ include file="/module/orderField.jsp"%>

<style>

table label.error {
    margin-left: 5px;
    width: auto;
    display: inline;
    color: red;
}


</style>
</head>
<body>
     <form action="#" name="Form" id="Form" method="post">
            <input type="hidden" name="sqid" id="sqid"  value="${data.sqid}"/>
            <input type="hidden" id="reId" name="reId" value="${reId}"/>
	     		<table cellpadding="0" cellspacing="0" border="0" class="table-border" width="95%">
			<tr>
				<td class="table-header" colspan="6">助学金审核</td>
			</tr>
			<tr>
				<td class="table-titleTD" style="width: 12%">姓名：</td>
				<td class="table-contentTD" style="width: 21%">${data.xm}</td>
				<td class="table-titleTD"  style="width: 12%">学号：</td>
				<td class="table-contentTD" style="width: 21%">${data.xh}</td>
				<td class="table-titleTD" style="width: 12%">性别：</td>
				<td class="table-contentTD" style="width: 22%">${data.xb}</td>
			</tr>
			<tr>
				<td class="table-titleTD">班级：</td>
				<td class="table-contentTD">${data.bjmc}</td>
				<td class="table-titleTD">专业：</td>
				<td class="table-contentTD">${data.zymc}</td>
				<td class="table-titleTD">年级：</td>
				<td class="table-contentTD">${data.njmc}</td>
			</tr>
			
			<tr>
				<td class="table-titleTD">民族：</td>
				<td class="table-contentTD"><select id="mz" name="mz"   disabled="disabled" class="selectList">
						<option value="">请选择</option>
							 <c:forEach items="${nationList}" var="code">
								<option value="${code.codename}">${code.codename}</option>
							</c:forEach>
				</select></td>
				<td class="table-titleTD">出生日期：</td>
				<td class="table-contentTD">${data.csrq1}</td>
				<td class="table-titleTD">入学日期：</td>
				<td class="table-contentTD"><fmt:formatDate value="${data.rxrq}" pattern="yyyy-MM-dd"/> </td>
			</tr>
			
			<%-- <tr>
			  <td class="table-titleTD" colspan="6" style="text-align: left;">家庭成员情况：</td>
			</tr>
			
					<tr>
						<td class="table-titleTD" colspan="2" style='text-align: center;'>姓名</td>
						<td class="table-titleTD"  style='text-align: center;'>年龄</td>
						<td class="table-titleTD"    style='text-align: center;'>与本人关系</td>
					    <td class="table-titleTD"   colspan="2"style='text-align: center;'>工作或学习单位</td>
					</tr>
					
				   <c:choose>
						<c:when test="${not empty familyList}"> 
						    	<c:forEach items="${familyList}" var="family">
							      <tr>
										<td class="table-contentTD"  colspan="2"style='text-align: center;'>${family.xm}</td>
										<td class="table-contentTD" style='text-align: center;'>${family.age}</td>
										<td class="table-contentTD"  style='text-align: center;'>${family.gx}</td>
										<td class="table-contentTD" colspan="2"  style='text-align: center;'>${family.gzdw}</td>
								   <tr>
									
							 </c:forEach>
						</c:when>
							<c:otherwise>  
                               <tr>
							        <td class="table-titleTD" colspan="6" style="text-align: left;">无家庭成员信息</td>
							    </tr>	
							</c:otherwise> 
					</c:choose>  --%>
					
			    <tr>
				<td class="table-titleTD">家庭成员：</td>
				<td colspan="5">
				   <table cellpadding="0" cellspacing="0" border="0" class="table-border" width="100%">
					  <tr>
						<td class="table-titleTD"  style='text-align: center;'>姓名</td>
						<td class="table-titleTD"  style='text-align: center;'>年龄</td>
						<td class="table-titleTD"  style='text-align: center;'>与本人关系</td>
					    <td class="table-titleTD"  colspan="2"  style='text-align: center;'>工作或学习单位</td>
					   </tr>
					   
					     <c:choose>
						<c:when test="${not empty familyList}"> 
						    	<c:forEach items="${familyList}" var="family">
							      <tr>
										<td class="table-contentTD" style='text-align: center;'>${family.xm}</td>
										<td class="table-contentTD" style='text-align: center;'>${family.age}</td>
										<td class="table-contentTD"  style='text-align: center;'>${family.gx}</td>
										<td class="table-contentTD"  colspan="2" style='text-align: center;'>${family.gzdw}</td>
								   <tr>
									
							 </c:forEach>
						</c:when>
							<c:otherwise>  
                               <tr>
							        <td class="table-titleTD" colspan="5" style="text-align: center;">无家庭成员信息</td>
							    </tr>	
							</c:otherwise> 
					    </c:choose> 
			       </table>
				</td>
			</tr>		
					
			  <tr>
					<td class="table-titleTD">户籍性质：</td>
					<td class="table-contentTD"> 
								          <input type="radio" value="农业户口"  name="hjxz" disabled="disabled" <c:if test="${data.hjxz=='农业户口'}">checked="checked"</c:if>/>农业户口
								          <input type="radio" value="非农业户口" name="hjxz"  disabled="disabled" <c:if test="${data.hjxz=='非农业户口'}">checked="checked"</c:if>/>非农业户口
			    </td>
				<td class="table-titleTD">主要收入来源:</td>
				<td class="table-contentTD">${data.zysrly}
				</td>
				<td class="table-titleTD">联系电话:</td>
				<td class="table-contentTD">${data.lxdh}
				</td>
			 </tr>
			 
			 
			  <tr>
				<td class="table-titleTD">家庭年收入:</td>
				<td class="table-contentTD">${data.jtnsr}
				</td>
				<td class="table-titleTD">人均年收入:</td>
				<td class="table-contentTD">${data.rjnsr}
				</td>
				  <td class="table-titleTD">是否因病因灾:</td>
				  <td class="table-contentTD">	
				     <input type="radio" value="true" name="sfybyz"  disabled="disabled" <c:if test="${data.sfybyz=='true'}">checked="checked"</c:if> />是
				     <input type="radio" value="false" name="sfybyz"  disabled="disabled" <c:if test="${data.sfybyz=='false'}">checked="checked"</c:if>/>否
				  </td>
			 </tr>
			 
			   <tr>
				<td class="table-titleTD">家庭地址:</td>
				<td class="table-contentTD" colspan="3">${data.jtdz}</td>
				<td class="table-titleTD">邮政编码:</td>
				<td class="table-contentTD">${data.yzbm}</td>
			 </tr>
			
			<tr>
				<td class="table-titleTD">申请助学金理由:</td>
				<td class="table-contentTD" colspan="6" style="width: 100%">${data.sqly}</td>
			</tr>
		</table>
	
		<br />
		
		
	   <c:if test="${data.states!=0}">
	   	<br />
		<table cellpadding="0" cellspacing="0" border="0" class="table-border" width="95%">
			   <c:if test="${checkFlag==1}">
						<tr>
							<td class="table-titleTD">审批意见：</td>
							<td class="table-contentTD" colspan="5" style="border: 0;"><input type="text" id="spyj" name="spyj" value="" class="inputText" style="width: 50%"/>&nbsp;&nbsp;	审批结果：
							<input type="radio" id="states" name="states" value="3" checked="checked"/>审核通过&nbsp;&nbsp;
							<input type="radio" id="states" name="states" value="1"/>拒绝&nbsp;&nbsp;
							<input type="button" id="btnSave"   class="inputButton" style="text-align: center;" value="完成审批" />&nbsp;&nbsp;
						    <input type="button" id="returnBut" autocomplete="off"  class="inputButton"value="返回" style="text-align: center;" />
							</td>
						</tr>
				</c:if>
			<tr>
				<td class="table-titleTD" style="text-align: center;">序号</td>
				<td class="table-titleTD" style="text-align: center;">审批人</td>
				<td class="table-titleTD"  style="text-align: center;">审批步骤</td>
				<td class="table-titleTD" style="text-align: center;">审批结果</td>
				<td class="table-titleTD" style="text-align: center;">审批时间</td>
				<td class="table-titleTD" style="text-align: center;">审批意见</td>
			</tr>
			<c:forEach items="${chekResultList}" var="res" varStatus="status">
			<tr>
				<td class="table-contentTD" style="text-align: center;">${status.index+1}</td>
				<td class="table-contentTD" style="text-align: center;">${res.userName}</td>
				<td class="table-contentTD"  style="text-align: center;">${res.stepName}</td>
				<td class="table-contentTD" style="text-align: center;">${res.userState}</td>
				<td class="table-contentTD" style="text-align: center;">${res.approvalTime}</td>
				<td class="table-contentTD" style="text-align: center;">${res.comments}</td>
			</tr>
			</c:forEach>
	     </table>
	   </c:if>
	   <br/>
	 		<c:if test="${checkFlag==0}">
				<table cellpadding="0" cellspacing="0" border="0" align="left">
					<tr>
						 <td><input type="button" id="returnBut" autocomplete="off"  class="inputButton"value="返回" style="text-align: center;" /></td>
					</tr>
				</table>
			</c:if>
	   
	  </form> 
	<script>
		 
			$(document).ready(function() {
				//保存
				$("#btnSave").click(function() {
					             $("#btnSave").attr("disabled",true);
								  layer.confirm("您是否确定审核吗?",{icon : 3,title : '提示',skin : 'layer-ext-moon'},function(index) {
										document.Form.action = "${basePath}/zxjStudentNationalGrant/audit";
										document.Form.submit();	 
								   },function(index) {
									    layer.close(index);
									    $("#btnSave").attr("disabled",false);
									});	
										
				 });
				
				  $("#returnBut").click(function() {
		 		 	  window.location.href='${basePath}/zxjStudentNationalGrant/index_audit';
		 		  });
			});
			
			 compareListValue(document.getElementById('mz'),'${data.mz}');
		
		</script>

</body>
</html>
